package com.cskaoyan.javase.oop2._1extends._7initialization._1basic;
/**
 * 子类构造器使用alt+insert生成
 * @since 15:48
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo2 {
}
class Person{
    int a;
    int b;

    public Person(int a, int b) {
        this.a = a;
        this.b = b;
    }

    public Person() {
    }
}
class Student extends Person{
    int c;
    int d;

    public Student(int c, int d) {
        // super();
        this.c = c;
        this.d = d;
    }

    public Student(int a, int b, int c, int d) {
        super(a, b);
        this.c = c;
        this.d = d;
    }
}